<?php
namespace app\admin\validate;
use think\Validate;
class Goods extends Validate
{
	protected $rule = [
		['brand','require|max:10','分类名必须传递|分类名不得超过10'],
		['price','number'],
		['stock','number'],
		['id','number'],
		['dels','number'],
	];

	/**场景设置**/
    protected  $scene = [
    	'changeprice' => ['id','price'],
    	'changestock' => ['id','stock'],
    	'delete' => ['id','dels'],
    ];
}